import UserService from '../service/user-service';

class UserController {
  _service:UserService = new UserService()

  hello =  async(ctx: any) => {
    ctx.body = await this._service.hello();
  };
  getUserInfo = async(ctx: any) => {
    ctx.body = await this._service.getUserInfo(ctx);
  };
  getPaginUser = async(ctx: any) => {
    ctx.body = await this._service.getPaginUser(ctx);
  };
  addUser = async(ctx: any) => {
    ctx.body = await this._service.addUser(ctx);
  };
  updateUser = async(ctx: any) => {
    ctx.body = await this._service.updateUser(ctx);
  };
  deleteUser = async(ctx: any) => {
    ctx.body = await this._service.deleteUser(ctx);
  }
}

export default new UserController()